package cn.yhp.chatgpt.data.domain.openai.service;

import cn.yhp.chatgpt.data.domain.openai.model.aggregates.ChatProcessAggregate;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter;

/**
 * @author yhp
 * @description
 * @date 2024/2/1
 */
public interface IChatService {

    /**
     * 流式请求
     * @param chatProcess
     * @return
     */
    ResponseBodyEmitter completions(ChatProcessAggregate chatProcess,ResponseBodyEmitter emitter);
}
